import { createApp } from 'vue'
import './style.css'
import 'vant/es/dialog/style'
import 'vant/es/notify/style'
import 'vant/es/toast/style'
import 'vant/es/image-preview/style'
import App from './App.vue'
import 'lib-flexible'
import router from './router'
import Vconsole from "vconsole";

if (import.meta.env.MODE !== "production") {
    // 测试和开发打开，生产不能打开
    new Vconsole();
}
import { createPinia } from 'pinia'
import './permission'


// 持久化处理
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

createApp(App).use(router).use(pinia).mount('#app')
